import cv2
import numpy as np

cap = cv2.VideoCapture(0)
cap.set(3,640)
cap.set(4,480)

while 1:
    ret,frame=cap.read()
    frame=cv2.GaussianBlur(frame,(5,5),0)
    cv2.imshow('frame',frame)
    if cv2.waitKey(5) & 0xFF==27:
        break

cap.release()
cv2.destroyAllWindows()
